summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-12 23:05:45 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:54 +0200
commit512fb3abff5e4bf94c9d1a8f46980833f846642a (patch)
tree62319b7d752c1e08f480268436b3b88b559527ad
parentsettings: Move some simple data to BasicSetting (diff)
downloadyuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.tar
yuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.tar.gz
yuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.tar.bz2
yuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.tar.lz
yuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.tar.xz
yuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.tar.zst
yuzu-512fb3abff5e4bf94c9d1a8f46980833f846642a.zip
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index 9afab6d91..44d1603d0 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -394,8 +394,6 @@ void ConfigureGraphics::ApplyConfiguration() {
Settings::values.vsync_mode.SetValue(vsync_mode);
}
- Settings::values.shader_backend.SetGlobal(true);
- Settings::values.vulkan_device.SetGlobal(true);
if (Settings::IsConfiguringGlobal() ||
(!Settings::IsConfiguringGlobal() && api_restore_global_button->isEnabled())) {
auto backend = static_cast<Settings::RendererBackend>(
@@ -404,12 +402,12 @@ void ConfigureGraphics::ApplyConfiguration() {
.first);
switch (backend) {
case Settings::RendererBackend::OpenGL:
- Settings::values.shader_backend.SetGlobal(false);
+ Settings::values.shader_backend.SetGlobal(Settings::IsConfiguringGlobal());
Settings::values.shader_backend.SetValue(static_cast<Settings::ShaderBackend>(
shader_mapping[shader_backend_combobox->currentIndex()].first));
break;
case Settings::RendererBackend::Vulkan:
- Settings::values.vulkan_device.SetGlobal(false);
+ Settings::values.vulkan_device.SetGlobal(Settings::IsConfiguringGlobal());
Settings::values.vulkan_device.SetValue(vulkan_device_combobox->currentIndex());
break;
case Settings::RendererBackend::Null: